FROM clickhouse/clickhouse-server:23.4.2.11

COPY ./init_sql  /tmp/init_sql
COPY ./conf/m_clickhouse.xml /tmp/init_sql/
RUN mv /tmp/init_sql/*.sql /docker-entrypoint-initdb.d
RUN mv /tmp/init_sql/*.xml /etc/clickhouse-server/config.d/
RUN rm -rf /tmp/init_sql
